﻿<!DOCTYPE html>
<!--动火作业安全许可证申请-->
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

    <style>
        body {
            padding-bottom: 10px;
        }

        .el-dialog__body {
            height: 100% !important;
        }

        .el-dialog.is-fullscreen {
            overflow: hidden !important;
        }

        .el-col {
            padding: 10px;
            font-size: 14px;
        }

        td {
            padding: 10px 0;
            font-size: 14px;
        }

        .el-form-item {
            margin-bottom: 0px !important;
        }

        .el-input-group__prepend,
        .el-form-item__label {
            color: #000;
            font-size: 14px;
        }

        .el-input__inner {
            color: #606266;
            font-size: 14px;
        }

        .el-input--mini .el-input__inner {
            height: 20px;
            line-height: 28px;
        }

        .el-input-group__prepend div {
            text-align: left !important;
            padding-left: 10px
        }

        .el-input-group__prepend,
        .el-form-item__label {
            text-align: left !important;
            padding-left: 10px!important
        }
    </style>
</head>

<body>
    
<div id="app" v-cloak>   
        <div style="width:100%;text-align:center ">
            <label style="font-weight:bold">动火作业安全许可证</label>
        </div>

        <div style="width:100%;text-align:right ">
            <label> {{HotWorkSafetyLicense.ApplicationNumber+mark.m}} {{Form.ApplicationNumber}}</label>
        </div>
        <el-form :model="Form" status-icon style="margin-top:5px;width:100%" class="safeCard">
            <!--<el-row type="flex" justify="end">
            <el-col span="23">
                {{HotWorkSafetyLicense.ApplicationNumber+mark.m}} {{Form.ApplicationNumber}}
            </el-col>
        </el-row>-->

            <table style="border:1px  solid; width:100%" cellpadding="0" cellspacing="0">
                <tr style="border:1px  solid;">
                    <td width="8%" rowspan="7" style="text-align:center;border-right:1px solid ">工作内容</td>
                    <td width="46%" style="border-right:1px solid;border-bottom:1px solid  ">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        {{HotWorkSafetyLicense.OperatingUnit+mark.m}}
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.OperatingUnit" slot="suffix"
                                        :placeholder="HotWorkSafetyLicense.OperatingUnit">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in OperatingUnit" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                    <td width="46%" style="border-bottom:1px solid">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        {{HotWorkSafetyLicense.TerritorialDepartment+mark.m}}
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.TerritorialDepartment" slot="suffix"
                                        :placeholder="HotWorkSafetyLicense.TerritorialDepartment">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in TerritorialDepartment" :label="item.value"
                                            :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                </tr>
                <tr style="border:1px  solid;">
                    <td width="46%" style="border-right:1px solid;border-bottom:1px solid  ">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input type="text" v-model="Form.JobManagere" autocomplete="off" size="mini">
                                    <template slot="prepend">
                                        {{HotWorkSafetyLicense.JobManagere+mark.m}}
                                    </template>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                    <td width="46%" style="border-bottom:1px solid">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        {{HotWorkSafetyLicense.HotArea+mark.m}}
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.HotArea" slot="suffix"
                                        :placeholder="HotWorkSafetyLicense.HotArea">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in HotArea" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td width="46%" style="border-right:1px solid;border-bottom:1px solid  ">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input type="text" v-model="Form.HotFirePosition" autocomplete="off" size="mini">
                                    <template slot="prepend">
                                        {{HotWorkSafetyLicense.HotFirePosition+mark.m}}
                                    </template>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                    <td width="46%" style="border-bottom:1px solid">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        {{HotWorkSafetyLicense.Level+mark.m}}
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.Level" slot="suffix"
                                        :placeholder="HotWorkSafetyLicense.Level">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in Level" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                </tr>
                <!--动火内容描述-->
                <tr>
                    <td width="92%" colspan="2" style="border-bottom:1px solid;">
                        <el-form-item :label="HotWorkSafetyLicense.HotContentFescription+mark.m">
                            <el-input type="textarea" v-model="Form.HotContentFescription"></el-input>
                        </el-form-item>
                    </td>
                </tr>
                <!--是否附图纸-->
                <tr>
                    <td width="46%" style="border-right:1px solid;border-bottom:1px solid ; ">
                        <el-form-item :label="HotWorkSafetyLicense.IsSafeWorkProgram+mark.m" prop="IsSafeWorkProgram"
                            class="inputTextarea">
                            <el-radio-group v-model="Form.IsSafeWorkProgram" style="margin-top:13px">
                                <el-radio v-for="item in IsSafeWorkProgram" :label="item.value" :value="item.key">
                                    {{item.value}}</el-radio>
                            </el-radio-group>
                        </el-form-item>
                    </td>
                    <td width="46%" style="border-bottom:1px solid">
                        <el-form-item :label="HotWorkSafetyLicense.IsDrawing+mark.m" prop="IsDrawing"
                            class="inputTextarea">
                            <el-radio-group v-model="Form.IsDrawing" style="margin-top:13px">
                                <el-radio v-for="item in IsDrawing" :label="item.value" :value="item.key">{{item.value}}
                                </el-radio>
                            </el-radio-group>
                        </el-form-item>
                    </td>
                </tr>
                <!--//承包商-->
                <tr>
                    <td width="92%" colspan="2" style="border-bottom:1px solid">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        {{HotWorkSafetyLicense.contractor+mark.m}}
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.contractor" slot="suffix"
                                        :placeholder="HotWorkSafetyLicense.contractor">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in contractor" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                </tr>
                <!--气体检测人-->
                <tr>
                    <td width="46%" style="border-right:1px solid  ">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        {{HotWorkSafetyLicense.GasDetector+mark.m}}
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.GasDetector" slot="suffix"
                                        :placeholder="HotWorkSafetyLicense.GasDetector">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in Confirmor" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                    <td width="46%">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        {{HotWorkSafetyLicense.TestingRequirements+mark.m}}
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.TestingRequirements" slot="suffix"
                                        :placeholder="HotWorkSafetyLicense.TestingRequirements">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in TestingRequirements" :label="item.value"
                                            :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                </tr>
            </table>
            <!--作业类型-->
            <el-row style="border:1px  solid; border-top:0px; ">
                <el-col span="2">
                    <el-form-item>
                        {{HotWorkSafetyLicense.JobType}}:
                    </el-form-item>
                </el-col>
                <el-col span="22">
                    <el-form-item>
                        <el-checkbox-group v-model="Form.JobType" @change="handleChecked">
                            <el-checkbox v-for="city in JobType" :label="city.value" :key="city.key">{{city.value}}
                            </el-checkbox>
                        </el-checkbox-group>
                    </el-form-item>
                </el-col>
            </el-row>

            <!--危害因素-->
            <el-row style="border:1px  solid; border-top:0px; ">
                <el-col span="2">
                    <el-form-item>
                        {{HotWorkSafetyLicense.HazardIdentification}}:
                    </el-form-item>
                </el-col>
                <el-col span="22">
                    <el-form-item>
                        <el-checkbox-group v-model="Form.Hazard" @change="handleChecked">
                            <el-checkbox v-for="city in Hazard" :label="city.value" :key="city.key">{{city.value}}
                            </el-checkbox>
                        </el-checkbox-group>
                    </el-form-item>
                </el-col>
            </el-row>

            <!--涉及的其他特殊作业-->
            <el-row style="border:1px  solid; border-top:0px ">
                <el-col :span="12">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input type="text" v-model="Form.OtherSpecialOperationsInvolved" autocomplete="off"
                                size="mini">
                                <template slot="prepend">
                                    {{HotWorkSafetyLicense.OtherSpecialOperationsInvolved+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
                <el-col :span="12">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input size="mini">
                                <template slot="prepend">
                                    {{HotWorkSafetyLicense.SafetyEducator+mark.m}}
                                </template>
                                <el-select @visible-change="visibleChange" v-model="Form.SafetyEducator" slot="suffix"
                                    :placeholder="HotWorkSafetyLicense.SafetyEducator">
                                    <el-option label="请选择" value=""></el-option>
                                    <el-option v-for="item in Confirmor" :label="item.value" :value="item.key">
                                    </el-option>
                                </el-select>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
            </el-row>

            <!--安全措施-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24">
                    <el-table :data="Form.HazardIdentification" border>
                        <el-table-column prop="SafetyMeasures" :label="HotWorkSafetyLicense.SafetyMeasures">
                        </el-table-column>

                        <el-table-column :label="HotWorkSafetyLicense.Department" width="180px">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.Department" placeholder="请选择">
                                    <el-option v-for="item in TerritorialDepartment" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HotWorkSafetyLicense.Confirmor" width="130px">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.Confirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <!--基于数据库管控要求-->
            <!--<el-row style="border:1px  solid;border-top:0px;  ">
                <el-col span="24">
                    <label>{{HotWorkSafetyLicense.BasedDatabaseManagementRequirements+mark.m}}</label>
                    <a href="javascript:void(0)" v-on:click="RiskInformationBase('tj')">添加</a>
                </el-col>
            </el-row>-->

            <!--基于数据库管控要求数据-->
            <!--<el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" style="  padding-left:30px; ">
                    <el-table :data="Form.BasedDatabaseManagementRequirements"
                              border
                             >
                        <el-table-column prop="Risk"
                                         :label="EquipmenFacilities.Risk">
                        </el-table-column>
                        <el-table-column prop="ControlRequirement"
                                         :label="HotWorkSafetyLicense.ControlRequirements">
                        </el-table-column>

                        <el-table-column :label="HotWorkSafetyLicense.ControlDepartment" width="180px">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ControlDepartment" placeholder="请选择">
                                    <el-option v-for="item in TerritorialDepartment" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HotWorkSafetyLicense.ControlConfirmor" width="130px">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ControlConfirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>-->


            <!--受影响相关方-->
            <el-row style="border:1px  solid;border-top:0px;text-align: left  ">
                <el-col span="24">
                    <label>{{HotWorkSafetyLicense.AffectedParties+mark.m}}</label><a href="javascript:void(0)"
                        @click="AffectedPartiesInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--受影响相关方数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" style="  padding-left:30px; ">
                    <el-table :data="Form.AffectedParties" border>
                        <el-table-column :label="HotWorkSafetyLicense.AffectedPartiesUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.AffectedPartiesUnit"
                                    placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HotWorkSafetyLicense.AffectedPartiesConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.AffectedPartiesConfirmor"
                                    placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.AffectedPartiesUnit)"
                                    type="text" size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>


            <!--动火人：-->
            <el-row style="border:1px  solid;border-top:0px; text-align: left ">
                <el-col span="24">
                    <label>{{HotWorkSafetyLicense.HotFire+mark.m}}</label><a href="javascript:void(0)"
                        @click="HotFireInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--动火人：数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" style="  padding-left:30px; ">
                    <el-table :data="Form.HotFire" border>
                        <el-table-column :label="HotWorkSafetyLicense.HotFireUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.HotFireUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HotWorkSafetyLicense.HotFireConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.HotFireConfirmor"
                                    placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.HotFire)" type="text"
                                    size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>


            <!--监火人：-->
            <el-row style="border:1px  solid;border-top:0px;text-align: left  ">
                <el-col span="24">
                    <label>{{HotWorkSafetyLicense.Fireman+mark.m}}</label><a href="javascript:void(0)"
                        @click="FiremanInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--监火人：数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" style="  padding-left:30px; ">
                    <el-table :data="Form.Fireman" border>
                        <el-table-column :label="HotWorkSafetyLicense.FiremanUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.FiremanUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HotWorkSafetyLicense.FiremanConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.FiremanConfirmor"
                                    placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.Fireman)" type="text"
                                    size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <!--生产部 ：-->
            <el-row style="border:1px  solid;border-top:0px;text-align: left  ">
                <el-col span="24">
                    <label>{{HotWorkSafetyLicense.Production+mark.m}}</label><a href="javascript:void(0)"
                        @click="ProductionInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--生产部：数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" style="  padding-left:30px; ">
                    <el-table :data="Form.Production" border>
                        <el-table-column :label="HotWorkSafetyLicense.ProductionUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ProductionUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HotWorkSafetyLicense.ProductionConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ProductionConfirmor"
                                    placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.Production)" type="text"
                                    size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>



            <!--HSE部：-->
            <el-row style="border:1px  solid;border-top:0px; text-align: left ">
                <el-col span="24">
                    <label>{{HotWorkSafetyLicense.HSEDepartment+mark.m}}</label><a href="javascript:void(0)"
                        @click="HSEDepartmentInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--HSE部：数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" style="  padding-left:30px; ">
                    <el-table :data="Form.HSEDepartment" border>
                        <el-table-column :label="HotWorkSafetyLicense.HSEUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.HSEUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HotWorkSafetyLicense.HSEConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.HSEConfirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.HSEDepartment)"
                                    type="text" size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <!--审批人-->
            <el-row style="border:1px  solid;border-top:0px;text-align: left  ">
                <el-col span="24">
                    <label>{{HotWorkSafetyLicense.Approver+mark.m}}</label><a href="javascript:void(0)"
                        @click="ApproverInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--审批人数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" style="  padding-left:30px; ">
                    <el-table :data="Form.Approver" border>
                        <el-table-column :label="HotWorkSafetyLicense.ApproverUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ApproverUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HotWorkSafetyLicense.ApproverConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ApproverConfirmor"
                                    placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.Approver)" type="text"
                                    size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>


            <!--当班班长-->
            <el-row style="border:1px  solid;border-top:0px;text-align: left  ">
                <el-col span="24">
                    <label>{{HotWorkSafetyLicense.In_ClassSquadLeader+mark.m}}</label><a href="javascript:void(0)"
                        @click="In_ClassSquadLeaderInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--当班班长数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" style="  padding-left:30px; ">
                    <el-table :data="Form.In_ClassSquadLeader" border>
                        <el-table-column :label="HotWorkSafetyLicense.In_ClassUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.In_ClassUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HotWorkSafetyLicense.In_ClassConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.In_ClassConfirmor"
                                    placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value"
                                        :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.In_ClassSquadLeader)"
                                    type="text" size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>
            <el-row>
                <el-form-item style="text-align:center; padding-top:5px">
                    <el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnSave}}</el-button>
                    <el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnCommit}}</el-button>
                </el-form-item>
            </el-row>
        </el-form>
        <el-dialog :title="title" :visible.sync="ListItem.dialogVisible" width="90%" height="95%" top="10vh"
            fullscreen="true">
            <iframe ref="iframe" :src="ListItem.InputUrl" style="height:95%;width:100%" frameborder="0"></iframe>
        </el-dialog>
    </div>
    <script type="text/javascript">
        app = new Vue({
            el: '#app',
            data: {
                id: '',
                title: '',
                Form: {
                    id: guidEmpty,
                    ApplicationNumber: '', // "申请编号",
                    ApplicationTime: '', // "申请时间",
                    applicant: '', //"申请人",
                    OperatingUnit: '', //"作业单位",
                    JobManagere: '', //"负责人",
                    JobLocation: '', // "作业地点",
                    JobStartTime: '', //"作业起始时间",
                    JobEndTime: '', // "有效截至时间",
                    TerritorialDepartment: '', // "属地部门",
                    CurrentJob: '', // "当前作业",
                    WorkContent: '', // "工作内容",
                    HotArea: '', // "动火区域",
                    HotFirePosition: '', // "动火位置",
                    HotContentFescription: '', // "动火内容描述",
                    IsSafeWorkProgram: '', // "是否附安全工作方案",
                    Level: '', //"等级",
                    IsDrawing: '', // "是否附图纸",
                    GasDetector: '', // "气体检测人",
                    TestingRequirements: '', // "检测要求(检测频次)",
                    JobType: '', //"作业类型",
                    Hazard: '',//"危害辨识",
                    contractor: '',// "承包商",
                    OtherSpecialOperationsInvolved: '',
                    SafetyEducator: '',
                    HazardIdentification: '',//安全措施
                    BasedDatabaseManagementRequirements: '',// "基于数据库管控要求",
                    AffectedParties: '',// "受影响相关方",
                    HotFire: '',// "动火人",
                    Fireman: '',// "监火人",
                    Production: '',// "生产部",
                    HSEDepartment: '',// "HSE部",
                    Approver: '',//,  "审批人",
                    In_ClassSquadLeader: ''//, "当班班长",
                },
                TerritorialDepartment: [],
                Level: [],
                contractor: [],
                Confirmor: [],
                OperatingUnit: [],
                HotArea: [],
                TestingRequirements: [],
                IsSafeWorkProgram: [],
                IsDrawing: [],
                JobType: [],
                Hazard: [],
                rules: {},
                BasedDatabaseManagementRequirements: [],
                ListItem: ListItem,
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                handleNodeClick: function (data) {
                    console.log(data);
                },
                handleSelect: function (ev) {
                    console.log(ev);
                },
                handleChecked: function (value) {
                },
                handleCheckedConfirmation: function (value) {
                },
                deleteRow: function (index, rows) {
                    rows.splice(index, 1);
                },
                getData: function () {
                    getDataAdd(this, '/api/HotWorkSafetyLicense/get?id=' + this.id);
                },
                In_ClassSquadLeaderInput: function (val, id) {
                    this.title = "当班班长管理";
                    DialogShow(this, val, "In_ClassSquadLeaderInput.html", id);
                },
                HSEDepartmentInput: function (val, id) {
                    this.title = "HSE部管理";
                    DialogShow(this, val, "HSEDepartmentInput.html", id);
                },
                ProductionInput: function (val, id) {
                    this.title = "生产部管理";
                    DialogShow(this, val, "ProductionInput.html", id);
                },
                FiremanInput: function (val, id) {
                    this.title = "监火人管理";
                    DialogShow(this, val, "FiremanInput.html", id);
                },
                AffectedPartiesInput: function (val, id) {
                    this.title = "受影响相关方管理";
                    DialogShow(this, val, "AffectedPartiesInput.html", id);
                },
                HotFireInput: function (val, id) {
                    this.title = "动火人管理";
                    DialogShow(this, val, "HotFireInput.html", id);
                },

                ApproverInput: function (val, id) {
                    this.title = "审批人管理";
                    DialogShow(this, val, "../GeneralLiftingWorkSafety/ApproverInput.html", id);
                },

                RiskInformationBase: function (val, id) {
                    this.title = "基于数据库管控要求管理";
                    DialogShow(this, val, "../GeneralLiftingWorkSafety/RiskInformationBase.html", id);
                },
                //提交数据
                onSubmitForm: function (formName) {
                    var mythis = this;
                    //this.$refs[formName].validate(function (valid) {
                    //    //验证通过
                    //    if (valid) {
                    onSubmitForm(this, '/api/HotWorkSafetyLicense/Save', mythis.Form);
                    //} else {
                    //    //验证失败
                    //    return false;
                    //}
                    //});
                },
            },
            mounted: function () {
                var list = getDicDataArray(['14', '03', '50', '12', '09', '08', '97', '120', '121', '122']);
                this.OperatingUnit = getDicDatafromArray('08', list);
                this.TerritorialDepartment = getDicDatafromArray('14', list);//工作类型
                this.Level = getDicDatafromArray('03', list);//工作类型
                this.contractor = getDicDatafromArray('12', list);//工作类型
                this.Confirmor = getDicDatafromArray("09", list);//批准人
                this.HotArea = getDicDatafromArray("97", list);//批准人
                this.IsSafeWorkProgram = getDicDatafromArray('50', list);
                this.IsDrawing = getDicDatafromArray('50', list);
                this.TestingRequirements = getDicDatafromArray('120', list);
                this.JobType = getDicDatafromArray('121', list);
                this.Hazard = getDicDatafromArray('122', list);
                this.id = getUrlParam("id");
                this.getData();
                //this.BasedDatabaseManagementRequirements = this.Form.BasedDatabaseManagementRequirements;
            }
        });
    </script>
</body>

</html>